package com.struts2_2_3.action;

import com.opensymphony.xwork2.ActionSupport;
import com.struts2_2_3.bean.User;

public class UserAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8067393030817394749L;
	
	private User user;
	
	@Override
	public String execute() throws Exception {
		System.out.println("username = " + user.getUsername());
		System.out.println("password = " + user.getPassword());
		return SUCCESS;
	}
	

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	
}
